package com.inspur.springcloudgateway.service;

import com.inspur.springcloudgateway.fallback.EchoFallBackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = "gateway-provider", fallbackFactory = EchoFallBackFactory.class)
public interface EchoFeignService {

    @RequestMapping("/hello/{str}")
    public String hello(@PathVariable("str")String str);

}
